# Check project structure script
import os
import sys

def check_project_structure():
    print("Checking project structure...")
    
    # Check directory structure
    required_dirs = [
        "app",
        "app/api",
        "app/models",
        "app/schemas",
        "app/crud",
        "app/core",
        "app/utils"
    ]
    
    for dir_path in required_dirs:
        full_path = os.path.join(os.getcwd(), dir_path)
        if os.path.exists(full_path):
            print(f"OK: {dir_path} directory exists")
        else:
            print(f"ERROR: {dir_path} directory does not exist")
    
    # Check key files
    required_files = [
        "app/main.py",
        "app/database.py",
        "app/models/user.py",
        "app/models/issue.py",
        "app/models/case.py",
        "app/models/ticket.py",
        "app/models/resource.py",
        "app/api/auth.py",
        "app/api/users.py",
        "app/api/issues.py",
        "app/api/cases.py",
        "app/api/tickets.py",
        "app/api/resources.py",
        "app/schemas/user.py",
        "app/schemas/issue.py",
        "app/schemas/case.py",
        "app/crud/user.py",
        "app/crud/issue.py",
        "app/crud/case.py"
    ]
    
    for file_path in required_files:
        full_path = os.path.join(os.getcwd(), file_path)
        if os.path.exists(full_path):
            print(f"OK: {file_path} file exists")
        else:
            print(f"ERROR: {file_path} file does not exist")

if __name__ == "__main__":
    check_project_structure()